<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="Model.Purchase.PurchaseOfferList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
   CookieHelper cookie = new CookieHelper(request, response);
   PurchaseOfferList pur = new PurchaseOfferList(pageContext);
   pur.request();
   if(pur.select().where("myid='"+cookie.Get("myid") +"' and purchaseid ='"+pur.get("purchaseid") +"'").get_first_rows()){
     out.print("2");
   }else{
     pur.keyvalue("myid",cookie.Get("myid"));
     pur.append().submit();
     out.print("1");
   }

%>
